package com.woniuxy.mapper;

import com.woniuxy.entity.DeliveryOrder;
import com.woniuxy.entity.dto.BindManAndOrderDTO;
import com.woniuxy.entity.dto.DeliveryOrderQueryDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Quan
* @description 针对表【t_delivery_order】的数据库操作Mapper
* @createDate 2025-03-18 19:03:38
* @Entity com.woniuxy.entity.TDeliveryOrder
*/
public interface DeliveryOrderMapper {
	/**
	 * @Description: 根据条件进行查询，如果为空，查询全部
	 * @Param: [orderQueryDTO]
	 * @return: java.util.List<com.woniuxy.entity.DeliveryOrder>
	 * @Author: Quan
	 * @Date: 2025/3/18
	 */
	List<DeliveryOrder> queryInfo(DeliveryOrderQueryDTO orderQueryDTO);

	/**
	 * @Description: 将外卖员与订单添加到t_order_bind_takeaway_man表中
	 * @Param: [manAndOrderDTO]
	 * @return: void
	 * @Author: Quan
	 * @Date: 2025/3/18
	 */
	void addOrderAndManToBindTable(BindManAndOrderDTO manAndOrderDTO);

	/**
	 * @Description: 修改对应id的状态
	 * @Param: [orderId]
	 * @return: void
	 * @Author: Quan
	 * @Date: 2025/3/18
	 */
	void changeOrderState(@Param("orderId") String orderId, @Param("state") Integer state);
}




